using System;
using System.Windows;
namespace MicroMsg.Common.Event
{
	public class EventWatcher
	{
		private const string TAG = "EventWatcher";
		public EventHandlerDelegate mHandler;
		public string objName;
		public string objMethod
		{
			get
			{
				return this.mHandler.get_Method().get_Name();
			}
		}
		public EventWatcher(object object_0, object userArgs, EventHandlerDelegate handler)
		{
			this.mHandler = handler;
			this.objName = this.mHandler.get_Method().get_ReflectedType().get_Name();
		}
		public EventWatcher(string name, EventHandlerDelegate handler)
		{
			this.mHandler = handler;
			this.objName = name;
		}
		public void printInfo()
		{
		}
		public bool doInvoke(BaseEventArgs evtArgs)
		{
			this.mHandler(this, evtArgs);
			return true;
		}
		public bool beginInvoke(BaseEventArgs evtArgs)
		{
			Deployment.get_Current().get_Dispatcher().BeginInvoke(delegate
			{
				this.doInvoke(evtArgs);
			});
			return true;
		}
	}
}
